home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / doc / www-talk.archive.Z / www-talk.archive / text0049.txt < prev    next >
Encoding:
Text File  |  1992-11-30  |  2.4 KB  |  70 lines

  1. Dave,
  2.  
  3. > In our network environment there is only one machine that has  
  4. direct access
  5. > to the Internet for security reasons.  Is there a way to run the  
  6. client on
  7. > some other system in our net and have it use the "gateway" machine?   
  8. I am
  9. > very interested in learning more about the WWW and similar  
  10. projects.  It's
  11. > kind of annoying that the setup here makes this difficult.
  12. >
  13. > Thanks,
  14. >
  15. > Dave Brennan
  16.  
  17. That's a very good question, as lots of companies have this  
  18. restriction.
  19. Fortunately, the browser is set up so that you can
  20. pass requests (according to protocol in the document id) to a  
  21. gateway.  You can on the client node setenv WWW_http_GATEWAY and  
  22. WWW_wais_GATEWAY etc to point gateway addresses. At that address you  
  23. need to set up a server to access the remote whateveritis and send  
  24. the results back as hypertext.
  25.  
  26.     HTTP gateway:
  27.  
  28. I've just tried this and it seems to work fine. You use the www  
  29. client as a server. On your gateway machine,
  30.  
  31. 1. Put a new service (htgate, 8002 say) into /etc/services or  
  32. whatever you use instead.
  33.  
  34. 2. Set up inetd.conf to run /usr/local/bin/htgate when a tcp  
  35. connection to htgate comes in. You have to kill -HUP the inetd  
  36. process to get it to take the change into account.
  37.  
  38. 3. Use this htgate script which reads the command line and then calls  
  39. www with its second parameter and sends the source to the caller:
  40.  
  41. #! /bin/sh
  42. read get docid
  43. /usr/local/bin/www -source -n -na -p "$docid"
  44.  
  45. That will handle anything where the source is HTML.  It won't handle  
  46. internet news, gopher, etc.  (For that we need an option on the  
  47. browser -html which generates HTML
  48. from news, etc, which we haven't done yet -- but you're not the first  
  49. to ask)
  50.  
  51. I suggest you run the wais gateway separately, but you could change  
  52. the shell script to check the protocol on the doc-id and run www or  
  53. WAISGate as appropriate. That means you set separately on the client
  54.  
  55.     setenv WWW_http_GATEWAY http://gate.hal.com:8002/
  56.     setenv WWW_wais_GATEWAY http://gate.hal.com:8001/
  57.  
  58. For the wais gateway, you get the sources from info.cern.ch  
  59. /pub/www/stcWWWDaemon_v.vv.tar.Z and compile it. The documentation is
  60. http://info.cern.ch/hypertext/WWW/Daemon/User/Guide.html and linked  
  61. documents.
  62.  
  63. I hope this solves the problem and opens up the web for the  
  64. organsiation.  If you need the option for news or gopher, we'll have  
  65. to put the -html option in. Let me (and the list) know how you get  
  66. on...
  67.  
  68.     Tim
  69.  
  70.